<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path;
%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>
        ${title}
    </title>
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
    <link rel="stylesheet" href="<%=basePath%>/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="<%=basePath%>/css/font-awesome.min.css">
    <link rel="stylesheet" href="<%=basePath%>/css/ionicons.min.css">
    <link rel="stylesheet" href="<%=basePath%>/dist/css/AdminLTE.min.css">
    <link rel="stylesheet" href="<%=basePath%>/toastr/toastr.css" type="text/css"/>
    <link rel="stylesheet" href="<%=basePath%>/dist/css/skins/_all-skins.min.css">
    <link rel="stylesheet" href="<%=basePath%>/fileupload/fileinput.min.css"/>
    <link rel="stylesheet" href="<%=basePath%>/bootstrap-datetimepicker/css/bootstrap-datetimepicker.css">
    <link rel="stylesheet" href="<%=basePath%>/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
    <link rel="stylesheet" href="<%=basePath%>/pagination/style/pagination.css" media="screen">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iziModal/css/iziModal.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/select2/select2.min.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/iCheck/all.css">
    <link rel="stylesheet" href="<%=basePath%>/plugins/loaders/loaders.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/animate.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/flavr/flavr.css"/>
    <link rel="stylesheet" href="<%=basePath%>/plugins/bootstrap-treeview/css/bootstrap-treeview.css">

</head>
<!-- ADD THE CLASS sidedar-collapse TO HIDE THE SIDEBAR PRIOR TO LOADING THE SITE -->
    <body class="hold-transition skin-blue sidebar-mini">
    <div id="request-div" style="position: absolute;width: 100%;height: 100%;z-index: 10;display: none;">
        <img src='../images/request-sending.gif' style="position: relative;top: 50%;left: 50%;width: 70px;height: 70px">
    </div>
    <!-- Site wrapper -->
    <div class="wrapper">
        <header class="main-header">
            <!-- Logo -->
            <jsp:include page="../logo.jsp" ></jsp:include >
            <!-- Header Navbar: style can be found in header.less -->
            <nav class="navbar navbar-fixed-top">
                <!-- Sidebar toggle button-->
                <a class="sidebar-toggle" data-toggle="offcanvas" role="button" onclick="show()">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </a>
                <jsp:include page="../menuTop.jsp"></jsp:include>
            </nav>

        </header>

        <!-- =============================================== -->

        <!-- Left side column. contains the sidebar -->
        <aside class="main-sidebar">
            <jsp:include page="../menu.jsp"></jsp:include>
            <!-- /.sidebar -->
        </aside>

        <!-- =============================================== -->


        <!-- Content Wrapper. Contains page content -->
        <div class="content-wrapper" style="padding-top:50px;">
            <section class="content-header">
                <ol class="breadcrumb">
                    <li class="text-muted"><i class="fa fa-th"></i>&nbsp;&nbsp;合同管理
                    </li>
                    <li class="text-muted"><i class="fa fa-circle-o"></i>&nbsp;&nbsp;合同管理
                    </li>
                </ol>
            </section>

            <input type="hidden" value="<%=basePath%>" id="basePath">

            <section class="content">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="box box-info">
                            <div class="box-header with-border text-left">
	      				<span class="">
                            <button id="upload" type="button"  class="btn btn-info btn-sm" data-toggle="tooltip" title="文件上传" >
                                <i class="fa fa-upload"></i>
                            </button>
						</span>
                        <span class="pull-right">
                            <span>显示</span>
                            <select id="show-count" style="color: #EA544A">
                                <option value="20">20</option>
                                <option value="50">50</option>
                                <option value="100">100</option>
                                <option value="200">200</option>
                            </select>
                            <span>条，</span>
                            <span>共计</span>
                            <span id="total-count">0</span>
                            <span>条</span>
                            <button id="contractExecl" type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title="合同导入" >
                                      合同导入
                            </button>
                            <button id="estimateExecl" type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title=" 预计发货导入" >
                                      预计发货导入
                            </button>

                            <button id="search" type="button" class="btn btn-info btn-sm" data-toggle="tooltip" title="查询">
                                <i class="fa fa-search"></i>
                            </button>
	                  	</span>
                            </div>

                            <div class="box-body" style="margin: 5px 0px -10px 0px">
                                <!-- form start -->
                                <form id="queryForm" action="<%=basePath %>/device/page" method="post">
                                    <div class="row">
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <input type="text" class="form-control"  name="allName" value="" placeholder='合同名称/合同编号'>
                                            </div>
                                        </div>
                                        <c:if test="${loginUser.type != 1101}">
                                            <div class="col-md-3">
                                                <div class="form-group">
                                                    <input type="text" class="form-control"  name="firstPartyName" value="" placeholder='甲方'>
                                                </div>
                                            </div>
                                        </c:if>
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <input type="text" class="form-control"  name="secondPartyName" value="" placeholder='乙方'>
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <input type="text" class="form-control" name="startDate" value="" placeholder='合同签订起始时间'>
                                            </div>
                                        </div>
                                        <div class="col-md-3">
                                            <div class="form-group">
                                                <input type="text" class="form-control"  name="endDate" value="" placeholder='合同签订截止时间'>
                                            </div>
                                        </div>
                                    </div>
                                </form>
                            </div>
                            <div class="box-body table-responsive no-padding">
                                <table class="table table-bordered">
                                    <tbody>
                                        <tr class="info">
                                            <th class="text-center text-muted" style="width: 30px">#</th>
                                            <th class="text-center text-muted" style="width: 30px">&nbsp;</th>
                                            <th class="text-center text-muted" style="width: 50px">操作</th>
                                            <th class="text-muted">合同编号</th>
                                            <th class="text-muted">合同名称</th>
                                            <th class="text-muted">甲方名称</th>
                                            <th class="text-muted">乙方名称</th>
                                            <th class="text-muted">签订时间</th>
                                        </tr>
                                    </tbody>
                                    <tfoot id="contract_table">
                                    <%--  <tr>
                                          <td class="text-center text-muted" style="width: 30px">1</td>
                                          <td class="text-center text-muted" style="width: 50px">
                                              <button type="button" class="btn btn-primary btn-xs" onclick="contractInfo()" data-toggle="tooltip" title="详情">
                                                  <i class="fa fa-file-text-o"></i>
                                              </button>
                                          </td>
                                          <td class="text-center text-muted">HT0012312</td>
                                          <td class="text-center text-muted">2018年1月采购合同</td>
                                          <td class="text-center text-muted">巴德医疗科技上海有限公司</td>
                                          <td class="text-center text-muted">上海市宝山区仁和医院</td>
                                          <td class="text-center text-muted">2018-01-01</td>
                                      </tr>--%>
                                  </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>
        <div id="contractFileDiv"></div>
        <footer class="main-footer">
            <div class="pull-right hidden-xs">
                <b>Version</b> 1.0.0
            </div>
            <strong>Copyright &copy; 2019 <a href="http://almsaeedstudio.com">Topmed</a>.</strong> All rights reserved.
        </footer>
        <jsp:include page="../menuRight.jsp"></jsp:include>
    </div>
    <!-- ./wrapper -->

    <!-- ./wrapper -->
    <script src="<%=basePath%>/plugins/jQuery/jquery-2.2.3.min.js"></script>
    <script src="<%=basePath%>/bootstrap/js/bootstrap.min.js"></script>
    <script src="<%=basePath%>/plugins/slimScroll/jquery.slimscroll.min.js"></script>
    <script src="<%=basePath%>/plugins/fastclick/fastclick.js"></script>
    <script src="<%=basePath%>/dist/js/app.min.js"></script>
    <script src="<%=basePath%>/dist/js/demo.js"></script>
    <script src="<%=basePath%>/bootstrapvalidator/js/bootstrapValidator.min.js"></script>
    <script src="<%=basePath%>/toastr/toastr.js"></script>
    <script src="<%=basePath%>/pagination/js/jquery.pagination.min.js"></script>
    <script src="<%=basePath%>/js/overallSituation.js"></script>
    <script src="<%=basePath%>/fileupload/fileinput.min.js"></script>
    <script src="<%=basePath%>/fileupload/zh.js" type="text/javascript"></script>
    <script src="<%=basePath%>/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
    <script src="<%=basePath%>/bootstrap-datetimepicker/js/locales/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/select2/select2.min.js"></script>
    <script src="<%=basePath%>/plugins/select2/i18n/zh-CN.js"></script>
    <script src="<%=basePath%>/plugins/iCheck/icheck.min.js"></script>
    <script src="<%=basePath%>/plugins/iziModal/js/iziModal.min.js"></script>
    <script src="<%=basePath%>/plugins/flavr/flavr.min.js"></script>
    <script src="<%=basePath%>/plugins/bootstrap-treeview/js/bootstrap-treeview.js"></script>
    <script src="<%=basePath%>/js/contract/contract-page.js"></script>
    <script src="<%=basePath%>/js/file-upload.js"></script>
    </body>
</html>
